home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head>
- <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
- <meta name="generator" content="Adobe GoLive 4">
- <title>KeyCompare Action</title>
- </head>
-
- <body bgcolor="white">
- <center>
- <font size="6">KeyCompare Action</font><font>
- <hr>
- </font></center>
- <p>
- <csactionclass name="KeyPress" function="CSKeyCompare" nsversion="4" ieversion="4" actiontype="3"></p>
- <p>
- <csactionparam name="charCode" type="GLActionNumParam"></p>
- <p></csactionclass>
- </p>
- <p> </p>
- <p>IE Stuff
- <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
- </p>
- <p>KeyPress
- <script language="JavaScript1.2" cyberversion="N1.2"><!--
- CSCurrentPressedKey = -1;
- function CSKeyPress(ev) {
- var code;
- if(IsIE()) CSCurrentPressedKey = event.keyCode;
- else CSCurrentPressedKey = ev.which;
- }
- document.onkeypress = CSKeyPress;
-
- function CSKeyCompare(condition)
- {
- var eq = (condition[1] == CSCurrentPressedKey);
- if(eq)
- CSCurrentPressedKey = -1;
- return eq;
- }
- // -->
- </script>
- </p>
- <p> </p>
- <p>
- <table cool width="253" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
- <tr height="1" cntrlrow>
- <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
- <td width="16" height="1"><spacer type="block" width="16" height="1"></td>
- <td width="58" height="1"><spacer type="block" width="58" height="1"></td>
- <td width="176" height="1"><spacer type="block" width="176" height="1"></td>
- </tr>
- <tr height="16">
- <td width="1" height="16"><spacer type="block" width="1" height="16"></td>
- <td width="16" height="16"><spacer type="block" width="16" height="16"></td>
- <td width="58" height="16"><spacer type="block" width="58" height="16"></td>
- <td width="176" height="16"><spacer type="block" width="176" height="16"></td>
- </tr>
- <tr height="3">
- <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
- <td width="16" height="3"><spacer type="block" width="16" height="3"></td>
- <td width="58" height="3"><spacer type="block" width="58" height="3"></td>
- <td width="176" height="134" colspan="1" rowspan="2" valign="top" align="left" xpos="74">
- <csactioncntrl name="charCode" x="74" y="16" width="71" height="18" alignx="scale" aligny="top">
- </td>
- </tr>
- <tr height="131">
- <td width="1" height="131"><spacer type="block" width="1" height="131"></td>
- <td width="16" height="131"><spacer type="block" width="16" height="131"></td>
- <td width="58" height="131" colspan="1" rowspan="1" valign="top" align="left" xpos="16">
- <csactioncntrl type="StaticText" value="CharCode" x="16" y="19" width="55" height="15" alignx="left" aligny="top">
- </td>
- </tr>
- </table>
- </p>
- <p>
- </body>
-
- </html>
-